package cn.bonoon.entities;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.bonoon.kernel.support.entities.AbstractPersistable;

@Entity
@Table(name = "t_idttaskfile", catalog = "db_n3pa_idt")
public class ImmediateTaskMaterial extends AbstractPersistable{
	
	private static final long serialVersionUID = -6474075357964483287L;

	@ManyToOne
	@JoinColumn(name = "R_TASK_ID")
	private ImmediateTaskEntity task;
	
	@Column(name = "C_DELETED")
	private boolean deleted;
	
	@Column(name = "C_PATH", length = 500)
	private String path;
	
	@Column(name = "C_NAME", length = 50)
	private String name;
	
	public ImmediateTaskEntity getTask() {
		return task;
	}
	public void setTask(ImmediateTaskEntity task) {
		this.task = task;
	}
	public boolean isDeleted() {
		return deleted;
	}
	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
}
